package com.yuw.jdbc.entity;

/**
 * 实体类——约定要求：实体类的属性名和数据库的字段名名字要一样，且属性名要全部小写
 * 
 * @author Administrator
 *
 */
public class Departments {
	// 属性
	private Long department_id;
	private String department_name;
	private Long manager_id;
	private Long location_id;

	// 行为
	public Long getDepartment_id() {
		return department_id;
	}

	public void setDepartment_id(Long department_id) {
		this.department_id = department_id;
	}

	public String getDepartment_name() {
		return department_name;
	}

	public void setDepartment_name(String department_name) {
		this.department_name = department_name;
	}

	public Long getManager_id() {
		return manager_id;
	}

	public void setManager_id(Long manager_id) {
		this.manager_id = manager_id;
	}

	public Long getLocation_id() {
		return location_id;
	}

	public void setLocation_id(Long location_id) {
		this.location_id = location_id;
	}

	@Override
	public String toString() {
		return "Departments [department_id=" + department_id + ", department_name=" + department_name + ", manager_id="
				+ manager_id + ", location_id=" + location_id + "]";
	}

}
